/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: tao
 * Date: 2023-12-04
 * Time: 13:11
 */
public class Test {
    public static void main(String[] args) {
        int x = 1;
        for (int i = 0; i < 2023; i++) {
            x *= 2;
            x %= 1000;
        }
        System.out.println(x);
    }
}
